package com.wjw.bms.dao.impl;

import java.util.List;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import com.wjw.bms.dao.HzDepartmentDao;
import com.wjw.bms.model.HzDepartment;

@Repository
public class HzDepartmentDaoImpl extends SqlSessionDaoSupport implements HzDepartmentDao {

	String ns = "com.wjw.bms.mapper.HzDepartmentMapper.";
	/**
	 * 与数据库的交互，查询部门
	* @Title: selectDepartment 
	* @Description: TODO 
	* @return 返回值为一个集合
	* @see com.wjw.bms.dao.HzDepartmentDao#selectDepartment()
	 */
	public List<HzDepartment> selectDepartment() {
   		List<HzDepartment> list = this.getSqlSession().selectList(ns+"selectDepartment");
		return list;
	}

}
